﻿using Consul;
using Microsoft.AspNetCore.Mvc;

namespace Medlcalcare.MVC.Controllers
{
    public class DoctorController : Controller
    {

        public IConfiguration Configuration { get; }

        public DoctorController(IConfiguration configuration)
        {
            Configuration = configuration;
        }


        /// <summary>
        /// 医生管理添加
        /// </summary>
        /// <returns></returns>
        public IActionResult AddDoctor()
        {
            ViewBag.BaseUrl = Configuration.GetSection("BaseUrl").Get<string>();
            return View();
        }

        /// <summary>
        ///  医生管理修改
        /// </summary>
        /// <returns></returns>
        public IActionResult UpdateDoctor()
        {
            ViewBag.BaseUrl = Configuration.GetSection("BaseUrl").Get<string>();
            return View();
        }


        /// <summary>
        ///  医生管理删除
        /// </summary>
        /// <returns></returns>
        public IActionResult DelDoctor()
        {
            ViewBag.BaseUrl = Configuration.GetSection("BaseUrl").Get<string>();
            return View();
        }



        /// <summary>
        ///  医生管理显示带查询
        /// </summary>
        /// <returns></returns>
        public IActionResult GetDoctor()
        {
            ViewBag.BaseUrl = Configuration.GetSection("BaseUrl").Get<string>();
            return View();
        }

      
    }
}
